<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>登录</title>
    <link th:href="@{/css/login.css}" rel="stylesheet">
</head>

<body>
<form id="login" th:action="@{login.do}" method="post">
    <h1>挂号吧</h1>
    <fieldset id="inputs">
        <input id="username" type="text" name="phone" placeholder="phone" autofocus required>
        <input id="password" type="password" name="password" placeholder="Password" required>
    </fieldset>
    <fieldset >
        <input type="radio" name="role" value="2" checked="checked">患者
        <input type="radio" name="role" value="3">医生
        <input type="radio" name="role" value="1">管理员
    </fieldset>
    <fieldset id="actions">
        <input type="submit" id="submit" value="登录">
        <a th:href="@{addPatient}"><input type="button" id="register" value="注册"></a>
    </fieldset>
</form>
<br><br>
<div style="text-align:center;clear:both">
    <p>适用浏览器：FireFox、Chrome、Safari、Opera、傲游、搜狗. 不支持IE8、360、世界之窗。</p>
    <h2 class="info" th:text="${error}" ></h2>
</div>
</body>
</html>
